import request from '@/utils/request'

// 查询宿舍检查列表
export function listInspection(query) {
  return request({
    url: '/examine/inspection/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍检查详细
export function getInspection(id) {
  return request({
    url: '/examine/inspection/' + id,
    method: 'get'
  })
}

// 新增宿舍检查
export function addInspection(data) {
  return request({
    url: '/examine/inspection',
    method: 'post',
    data: data
  })
}

// 修改宿舍检查
export function updateInspection(data) {
  return request({
    url: '/examine/inspection',
    method: 'put',
    data: data
  })
}

// 删除宿舍检查
export function delInspection(id) {
  return request({
    url: '/examine/inspection/' + id,
    method: 'delete'
  })
}
